#ifndef SHUTTLE_SHIELD_H
#define SHUTTLE_SHIELD_H

#include "shuttle_shield_item.h"
#include "cash.h"

class SHUTTLE_SHIELD : public QGraphicsItemGroup
{
private:
    SHUTTLE_SHIELD_ITEM *item_tl;
    SHUTTLE_SHIELD_ITEM *item_tc;
    SHUTTLE_SHIELD_ITEM *item_tr;

    SHUTTLE_SHIELD_ITEM *item_dl;
    SHUTTLE_SHIELD_ITEM *item_dc;
    SHUTTLE_SHIELD_ITEM *item_dr;

    SHUTTLE_SHIELD_ITEM *item_full;

    CASH *cash;

public:
    SHUTTLE_SHIELD(CASH *cash);
    ~SHUTTLE_SHIELD();

    QRectF boundingRect() const;
    QPainterPath shape() const;

    void init();
    void damaged(QPointF point);
    void destroyed();
};

#endif // SHUTTLE_SHIELD_H
